<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'delivery-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model, 'description', array('maxlength' => 300)); ?>
		<?php echo $form->error($model,'description'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'weight'); ?>
		<?php echo $form->textField($model, 'weight'); ?>
		<?php echo $form->error($model,'weight'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'pickup_location'); ?>
		<?php echo $form->textField($model, 'pickup_location', array('maxlength' => 200)); ?>
		<?php echo $form->error($model,'pickup_location'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'dropoff_location'); ?>
		<?php echo $form->textField($model, 'dropoff_location', array('maxlength' => 200)); ?>
		<?php echo $form->error($model,'dropoff_location'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'pickup_time'); ?>
		<?php echo $form->textField($model, 'pickup_time'); ?>
		<?php echo $form->error($model,'pickup_time'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'dropoff_time'); ?>
		<?php echo $form->textField($model, 'dropoff_time'); ?>
		<?php echo $form->error($model,'dropoff_time'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model, 'status', array('maxlength' => 40)); ?>
		<?php echo $form->error($model,'status'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'rating'); ?>
		<?php echo $form->textField($model, 'rating'); ?>
		<?php echo $form->error($model,'rating'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'cargo_type'); ?>
		<?php echo $form->textField($model, 'cargo_type', array('maxlength' => 100)); ?>
		<?php echo $form->error($model,'cargo_type'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model, 'price'); ?>
		<?php echo $form->error($model,'price'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'driverID'); ?>
		<?php echo $form->dropDownList($model, 'driverID', GxHtml::listDataEx(Driver::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'driverID'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'customerID'); ?>
		<?php echo $form->dropDownList($model, 'customerID', GxHtml::listDataEx(Customer::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'customerID'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'carID'); ?>
		<?php echo $form->dropDownList($model, 'carID', GxHtml::listDataEx(Car::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'carID'); ?>
		</div><!-- row -->


<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->